struct fragment
{
	float4 position  : POSITION;
	float4 color0    : COLOR0;
	float2 texcoord0 : TEXCOORD0;
};

struct pixel
{
	float4 color : COLOR;
};

pixel main( fragment IN,
		    const uniform sampler2D texture,
		    const uniform sampler2D texture2,
			const uniform float1 time)
{
	pixel OUT;

	float multiply = 3+sin(time*20)*1.5;
	float2 newtexcoord = IN.texcoord0*multiply;

	newtexcoord.x += time*25;

	float4 texelcolor = tex2D(texture, IN.texcoord0*2);
	float4 texelcolor2 = tex2D(texture2, newtexcoord);

	texelcolor2 *= texelcolor2;

	texelcolor2 *= 1.5;

	OUT.color = texelcolor*0.4 + texelcolor2*0.3;
	return OUT;

	
	
	
}
